import request from "@/utils/request";
import { stringify } from "qs";
import { toFormData } from "@/utils/utils.jsx";

//6.1 已售采购汇总列表
export async function getPurchasestatisticsList() {
	return request(`/purchasestatistics/page`);
}
// 总库存列表
export async function getFmcgpurchasesList(params) {
	return request(`/new-wms/inventory/total-inventory?${stringify(params)}`, {
		loading: true
	});
}
// 总库存合计
export async function getFmcgpurchasesCountList(params) {
	return request(`/new-wms/inventory/total-inventory-count?${stringify(params)}`, {
		loading: true
	});
}
//用户仓库下拉列表
export async function getWarehouseList() {
	return request(`/zjf-wms/warehouse/list`);
}
// 设置预警值
export async function updateInventoryWarn(params) {
	return request(`/new-wms/inventory/warn-value`, {
		method: "post",
		data: params,
		loading: true
	});
}
// 销售锁定数

export async function getSalesLockList(params) {
	return request(`/new-wms/inventory/sales-lock-list`, {
		method: "post",
		data: params,
		loading: true
	});
}
